import { NgModule } from '@angular/core';
import { CommonModule }  from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';

import { ModalModule } from 'ng2-bootstrap/ng2-bootstrap';
import { NgaModule } from 'app/theme/nga.module';

import { RegisterComponent }   from './register.component';
import { RegisterRoutingModule } from './register.routing';
import { RegisterUserComponent, RegisterUserService } from './user';
import { RegisterCompanyComponent, RegisterCompanyService } from './company';

const COMPONENTS = [
    RegisterComponent,
    RegisterUserComponent,
    RegisterCompanyComponent
];

@NgModule({
    imports: [
        CommonModule,
        ReactiveFormsModule,
        ModalModule,
        NgaModule,
        RegisterRoutingModule
    ],
    exports: [...COMPONENTS],
    declarations: [...COMPONENTS],
    providers: [RegisterUserService, RegisterCompanyService],
})
export class RegisterModule { }
